package com.bwie.common.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 砍价记录表
 * </p>
 *
 * @author liuxin
 * @since 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_bargain_log")
@ApiModel(value="TBargainLog对象", description="砍价记录表")
public class BargainLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "砍价记录表id")
    @TableId(value = "bargain_log_id", type = IdType.AUTO)
    private Long bargainLogId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "砍价商品id")
    private Long goodsSkuId;

    @ApiModelProperty(value = "砍价比例")
    private LocalDateTime bargainRatio;

    @ApiModelProperty(value = "砍掉金额")
    private BigDecimal bargainPrice;

    @ApiModelProperty(value = "砍价时间")
    private LocalDateTime bargainTime;

    @ApiModelProperty(value = "助力用户id")
    private Long helpingId;

    @ApiModelProperty(value = "砍价状态（1成功2进行中3失败）")
    private Integer bargainStatus;

    @ApiModelProperty(value = "逻辑删除（0存在1已删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;


}
